package com.recycle.exception;

public enum BusinessExceptionEnum {

NOTUSER(700,"用户不存在"),
    CODE_INVALID(40029,"js_code无效"),
    XCX_API_FREQUENNtLY(45011,"API 调用太频繁，请稍候再试"),
    CODE_BLOCKED(40226,"高风险等级用户"),
    XCX_SYSTEM_ERROR(-1,"系统繁忙，此时请开发者稍候再试"),
    TOKEN_TIMEOUT(7001,"token 已过期，请重新登录");
    private String desc;
    private int code;

    BusinessExceptionEnum(int code,String desc) {
        this.desc = desc;
        this.code=code;
    }

    public String getDesc() {
        return desc;
    }

    public int getCode() {
        return code;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "BusinessExceptionEnum{" +
                "desc='" + desc + '\'' +
                ", code=" + code +
                '}';
    }
}
